using ASP;
using HoWave.Web;
using HoWave.Web.Shop;
using System;
using System.Data;
using System.Web.Profile;
using System.Web.SessionState;
public class ad_Search : Shop, IRequiresSessionState
{
	protected bool ShowShop = true;
	protected DefaultProfile Profile
	{
		get
		{
			return (DefaultProfile)this.Context.Profile;
		}
	}
	protected global_asax ApplicationInstance
	{
		get
		{
			return (global_asax)this.Context.ApplicationInstance;
		}
	}
	protected void Page_Load(object sender, EventArgs e)
	{
		if (!this.Page.IsPostBack)
		{
			ShopConfigBll shopConfigBll = new ShopConfigBll();
			DataTable config = shopConfigBll.GetConfig();
			if (!config.Rows[0]["ShowShop"].ToString().Equals("1"))
			{
				this.ShowShop = false;
			}
			config.Dispose();
		}
	}
}
